using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UIController : MonoBehaviour
{
    public GameObject panel;
    public PlayerMovement characterMovement;

    void Update()
    {
        if (panel.activeSelf)
        {
            characterMovement.DisableMovement();
        }
        else
        {
            characterMovement.EnableMovement();
        }
    }
}